<link rel="stylesheet" href="/static/admin/css/welcome.css?v={$version}" media="all">
<div class="layui-layout layui-padding-2">
    <div class="layui-layout-admin">
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md12">
                <div class="layui-row layui-col-space10">
                    <div class="layui-col-md6 layui-col-sm12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-calendar icon"></i><span id="time"></span>
                            </div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs12 layui-col-sm12">
                                            <div class="layui-panel">
                                                <div class="layui-card-body">
                                                    <div class="welcome-module">
                                                        <div class="layui-row layui-col-space2">
                                                            <div class="layui-col-xs6">
                                                                <div class="layui-panel">
                                                                    <div id="attendance" class="{$today_attendance.attendance_class}">周{$week}--{$today_attendance.attendance}</div>
                                                                </div>
                                                            </div>
                                                            <div class="layui-col-xs6">
                                                                <div class="layui-panel">
                                                                    <div class="layui-card-body">
                                                                        {$wnl.lMonth|default="--"}月
                                                                        {$wnl.lDate|default="--"}</div>
                                                                </div>
                                                            </div>
                                                            <div class="layui-col-xs12 layui-col-md4">
                                                                <div class="layui-panel">
                                                                    <div class="{$class}">
                                                                        {$wnl.gzDate|default="--"}日
                                                                        {$wnl.gzMonth|default="--"}月
                                                                        {$wnl.gzYear|default="--"}{$wnl.animal|default="--"}年
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="layui-col-xs12 layui-col-md4">
                                                                <div class="layui-panel">
                                                                    <div class="layui-card-body">{$today|default="--"}
                                                                    </div>
                                                                </div>
                                                            </div>
                                                            <div class="layui-col-xs12 layui-col-md4">
                                                                <div class="layui-panel">
                                                                    <div class="layui-card-body">
                                                                        {$tomorrow|default="--"}</div>
                                                                </div>
                                                            </div>
                                                        </div>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                    <div class="layui-col-md6 layui-col-sm12">
                        <div class="layui-card">
                            <div class="layui-card-header"><i class="fa fa-warning icon"></i>{$msg}</div>
                            <div class="layui-card-body">
                                <div class="welcome-module">
                                    <div class="layui-row layui-col-space10">
                                        <div class="layui-col-xs6 layui-col-sm6">
                                            <div class="layui-panel">
                                                <div class="layui-card-body">
                                                    <span class="layui-badge layui-bg-blue fa-pull-right ">总计</span>
                                                    <div class="panel-content">
                                                        <h2>{$model.sum_duration}天</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6 layui-col-sm6">
                                            <div class="layui-panel">
                                                <div class="layui-card-body ">
                                                    <span class="layui-badge layui-bg-red fa-pull-right ">请假</span>
                                                    <div class="panel-content">
                                                        <h2>{$model.leave_days} 天</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6 layui-col-sm6">
                                            <div class="layui-panel">
                                                <div class="layui-card-body ">
                                                    <span class="layui-badge layui-bg-orange fa-pull-right ">放假</span>
                                                    <div class="panel-content">
                                                        <h2>{$model.rest_days}天</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                        <div class="layui-col-xs6 layui-col-sm6">
                                            <div class="layui-panel">
                                                <div class="layui-card-body">
                                                    <span class="layui-badge layui-bg-green fa-pull-right ">上班</span>
                                                    <div class="panel-content">
                                                        <h2>{$model.work_days}天</h2>
                                                    </div>
                                                </div>
                                            </div>
                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
        <div class="layui-row layui-col-space10">
            <div class="layui-col-md12">
                <div class="layui-card">
                    <div class="layui-card-header"><i class="fa fa-line-chart icon"></i>报表统计</div>
                    <div class="layui-card-body">
                        <div class="layui-row layui-col-space10">
                            <div class="layui-col-md6 layui-col-xs12">
                                <div id="echarts-records" style="width: 100%;min-height:300px"></div>
                            </div>
                            <div class="layui-col-md6 layui-col-xs12">
                                <div id="leave-echarts-records" style="width: 100%;min-height:300px"></div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>